<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="com.sport.po.User"%> 
<!DOCTYPE html>
<html>
<head>
<title>Home</title>
<!-- Custom Theme files -->
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<body>
	<jsp:include page="/center/header.jsp" flush="true"></jsp:include>
	
	<jsp:include page="/center/left.jsp" flush="true"></jsp:include>
	  <!--right-->
   <div class="centers_mr">
   <%User user = (User)request.getSession().getAttribute("user"); %>
    <h1 class="welcom_tm">欢迎您，尊敬的用户     <font>< <%=user.getRealname() %></font>！当前时间为 <label id="show">显示时间的位置</label></h1>
    <script type="text/javascript">
//获得当前时间,刻度为一千分一秒
var initializationTime=(new Date()).getTime();
function showLeftTime()
{
var now=new Date();
var year=now.getYear()+1900;
var month=now.getMonth();
var day=now.getDate();
var hours=now.getHours();
var minutes=now.getMinutes();
var seconds=now.getSeconds();
document.getElementById("show").innerHTML=""+year+"年"+month+"月"+day+"日 "+hours+":"+minutes+":"+seconds+"";
//一秒刷新一次显示时间
var timeID=setTimeout(showLeftTime,1000);
}
showLeftTime();
</script>
    <!--一条开始-->
        <div class="public_m1">
            <div class="public_m2">资料管理</div>
            <!--照片和内容-->    
            <div class="zp_nrm">
                <!--left-->
                
                <!--right-->
                <div class="zp_nrm_r">
                 <p><em>用户名：</em><i><%=user.getUsername() %></i></p>
                    
                    <p><em>邮箱：</em><i><%=(user.getEmail()==null || user.getEmail().trim().equals(""))?"未设置":user.getEmail() %></i></p>
                    <p><em>手机号：</em><i><%=(user.getPhone()==null || user.getPhone().trim().equals(""))?"未设置":user.getPhone() %></i></p>
                    <%String sex = user.getSex(); %> 
                     <p><em>性别：</em>
                    <input type="radio" name="sex" class="sex_m" <%=(sex==null || !sex.trim().equals("男") || !sex.trim().equals("女"))?"checked=\"checked\"":"" %>>
                    <i>保密</i>
                    <input type="radio" name="sex" class="sex_m" <%=(sex==null)?"":(sex.trim().equals("男")?"checked=\"checked\"":"") %>>
                    <i>男</i>
                    <input type="radio" name="sex" class="sex_m" <%=(sex==null)?"":(sex.trim().equals("女")?"checked=\"checked\"":"") %>>
                    <i>女</i></p> 
                  
                </div>
            </div>
        </div>
                                          
    </div> 
	
</body>
</html>